<?php

namespace App\Service;

use App\Models\CaseDescribe as CaseDescribeDb;

//对应前台>问诊->电话咨询->病情描述copy copy->新建
class CaseDescribe
{
    /**
     * 写入数据
     * @param $data
     * @return void
     */
    public function Add($data)
    {
        if(isset($data['id']) && !empty($data['id'])){
            return CaseDescribeDb::where([['id','=',$data['id']]])->update($data);
        }else{
            return CaseDescribeDb::insertGetId($data);
        }
    }
}
